<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="format-detection" content="telephone=no" />
    <meta name="format-detection" content="email=no" />
    <title>店铺</title>
    <link rel="stylesheet" href="../../css/api.css">
    <link rel="stylesheet" href="../../css/main.css">
    <style></style>
</head>

<body>
    <div class="app" v-cloak>
        <header>
            <div class="flex-x-sb">
                <span class="iconfont goback" @click="back">&#xe66f;</span>
                <div class="title">
                    店铺详情
                </div>
                <div class="txt_btn" @click="goPage('store_edit')">编辑</div>
            </div>
        </header>
    </div>
    <script src="../../script/api.js"></script>
    <script src="../../script/flexible.js"></script>
    <script src="../../script/fastclick.js"></script>
    <script src="../../script/vue.min.js"></script>
    <script src="../../script/iconfont.js"></script>
    <script>
        apiready = function() {
            var apiParam = '';
            api.addEventListener({
                name: 'storeTranslate'
            }, function(ret, err) {
                console.log(JSON.stringify(ret))
                apiParam = ret.value;
            });
            vm = new Vue({
                el: '.app',
                data: {
                    phoneList: [''],
                    message: ''
                },
                mounted() {
                    var header = $api.dom('header');
                    var headerH = $api.fixStatusBar(header);
                    api.openFrame({
                        name: 'store_frm',
                        url: 'store_frm.html',
                        rect: {
                            marginTop: headerH + 4,
                            marginBottom: 0,
                            w: 'auto'
                        },
                        pageParam: api.pageParam
                    });
                },
                methods: {
                    goPage(url, type) {
                        api.openWin({
                            name: `${url}_win`,
                            url: `${url}_win.html`,
                            bounces: false,
                            pageParam: {
                                type: type,
                                apiParam
                            }
                        });
                    },
                    back() {
                        api.closeWin();
                    }
                },
            })
        }
    </script>
</body>

</html>